def fac(n):
    if n == 1:
        return 1
    else:
        return n * fac(n - 1)

n = eval(input("请输入数字n:>"))
ret = fac(n)
print(f"{n}的阶乘是:>", ret)